using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Resources;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace KPIS.GERP.Models.HRM
{
	[Table("HrmPrmPromotionEmployee")]
    public class PrmPromotionEmployee
    {
		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "PrmEmpId", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public int PrmEmpId { get; set; }

		[ForeignKey("Prm")]
		[DataMember, Display(Name = "PrmId", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> PrmId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> EmpId { get; set; }

		[ForeignKey("PrmJobSite")]
		[DataMember, Display(Name = "PrmJobSiteId", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> PrmJobSiteId { get; set; }

		[ForeignKey("AprJobSite")]
		[DataMember, Display(Name = "AprJobSiteId", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> AprJobSiteId { get; set; }

		[DataMember, Display(Name = "Promote", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> Promote { get; set; }

		[DataMember, Display(Name = "Appraisal", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> Appraisal { get; set; }

		[DataMember, Display(Name = "Score", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<decimal> Score { get; set; }

		[DataMember, Display(Name = "Salary", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<decimal> Salary { get; set; }

		[ForeignKey("PrmBase")]
		[DataMember, Display(Name = "PrmBaseId", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> PrmBaseId { get; set; }

		[DataMember, Display(Name = "PercenPromote", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<decimal> PercenPromote { get; set; }

		[DataMember, Display(Name = "Amount", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<decimal> Amount { get; set; }

		[ForeignKey("AprDtls")]
		[DataMember, Display(Name = "AprDtlsId", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> AprDtlsId { get; set; }

		[DataMember, Display(Name = "Remarks", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public string Remarks { get; set; }

		[DataMember, Display(Name = "RecordStatus", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public string RecordStatus { get; set; }

		[DataMember, Display(Name = "CreatedBy", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> CreatedBy { get; set; }

		[DataMember, Display(Name = "CreatedWhen", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<System.DateTime> CreatedWhen { get; set; }

		[DataMember, Display(Name = "UpdatedBy", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<int> UpdatedBy { get; set; }

		[DataMember, Display(Name = "UpdatedWhen", ResourceType = typeof(Resources.PrmPromotionEmployeesResource))]
        public Nullable<System.DateTime> UpdatedWhen { get; set; }

		public virtual PrmPromotion Prm { get; set; }

		public virtual Employee Emp { get; set; }

		public virtual HRM.JobSite PrmJobSite { get; set; }

		public virtual HRM.JobSite AprJobSite { get; set; }

		public virtual PrmPromotionBase PrmBase { get; set; }

		public virtual PsCommandDtls  AprDtls { get; set; }

    }
}